<?php

/**
 * language actions.
 *
 * @package    piedrasnativas.com.ar
 * @subpackage language
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class languageActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeChangeLanguage(sfWebRequest $request)
  {
    if($request->getParameter('lang') != null){
        $this->getUser()->setCulture($request->getParameter('lang'));
    }else{
        $this->getUser()->setCulture('es');
    }
    $this->redirect('@localized_homepage');
  }
}
